{extend name='table'}

{block name="button"}

{/block}

{block name="content"}
<div class="think-box-shadow">
    {include file='tracelog/index_search'}
    <table id="OplogTable" data-url="{:request()->url()}" data-target-search="form.form-search"></table>
</div>
{/block}

{block name='script'}
<script>
    $(function () {
        $('#OplogTable').layTable({
            even: true, height: 'full',
            sort: {field: 'id', type: 'desc'},
            cols: [[
                {checkbox: true},
                {field: 'id', title: '序号', sort: true, align: 'center'},
                {field: 'user_id', title: '{:lang("用户编号")}'},
                {field: 'city', title: '{:lang("用户定位")}'},
                {field: 'trace_code', title: '{:lang("扫码内容")}'},
                {field: 'product_code', title: '{:lang("产品编号")}'},
                {field: 'product_name', title: '{:lang("产品名称")}'},
                {field: 'product_batch', title: '{:lang("产品批次")}'},
                {field: 'shop_code', title: '{:lang("经销商编号")}'},
                {field: 'shop_name', title: '{:lang("经销商名")}' },
                {field: 'shop_city', title: '{:lang("门店销售范围")}' },
                {field: 'msg', title: '{:lang("扫码结果")}',width: 150  },
                {field: 'create_time', title: '{:lang("扫码时间")}' },
                // {field: 'pici_count', title: '{:lang("当前库存量")}', minWidth:200,},
                // {toolbar: '#toolbar', title: '{:lang("操作面板")}',width: 200, align: 'center',fixed: 'right'}
            ]]
        });
    });
</script>

{/block}